<?php
echo '<p class="description">' . text::getEscaped('registrationWizard.personalData-info') . '</p>';

$fb = new FormBuilder('person', $formData);
$fb->setAction('/user/registrationWizard/next');

$fb->delimiter(text::get('person-idetificationPapers'));
$fb->setFormId('wizardForm');
$fb->comboBox('idcard_type', $idcardTypeOptions)->required($papersRequired);
$fb->text('idcard_number')->required($papersRequired);
$fb->comboBox('citizenship_code', $countryOptions)->hint()->required();
$fb->delimiter();
$fb->comboBox('country_of_residence_code', $countryOptions)->required();
$fb->spacer();
$fb->checkbox('dataIsValid')->labelKey('registrationWizard.dataIsValid')->required();
$fb->write();
